{% extends 'base.html' %}

{% block title %} Scrums {% endblock %}

{% block content %}
<div class='results'>
	<b>Scrums:</b>
	<table class="data-table"><tbody>
		<tr> <th>Name</th> <th>Sprint</th> <th>Day</th> <th>Time</th> <th>View</th> <th>Edit</th> <th>Delete</th></tr>
	{% for s in scrums %}
		<tr class={% cycle '' 'alt'%}>
			<td> {{ s.name }} </td>
			<td> {{ s.sprint.name }} </td>
			<td> {{ s.daytext }} </td>
      <td> {{ s.time }} </td>
			<td> <a href='/scrum/view/{{ s.pk }}/'> View</a> </td>
			<td><a href='/scrum/edit/{{ s.pk }}/'> Edit</a> </td>
			<td><a href='/scrum/delete/{{ s.pk }}/'> Delete</a> </td>
		</tr>
	{% endfor %}
	</tbody></table>
	
	<div id="add_scrum">	<a href="/scrum/new/">Add New Scrum</a></div>
	
</div>
{% endblock %}


